package com.huyun.web.concurrency;

/**
 * @author huyunqiang
 * @Date 2019/7/5 14:14
 */

public class Test {
    public static void main(String[] args) {
        int sum = 0;
        Long startTime = System.currentTimeMillis();
        for (int i = 0; i < 5000; i++) {
            sum++;
        }
        Long endTime = System.currentTimeMillis();
        System.out.println(sum + "所用时间" + (endTime - startTime));
    }
}
